package com.three.iot.api;

import com.github.pagehelper.Page;
import com.three.iot.commons.dto.DeviceCondDto;
import com.three.iot.commons.dto.ProductAttrRespDto;
import com.three.iot.commons.enums.Result;
import com.three.iot.commons.po.UserInfo;
import com.three.iot.commons.dto.DeviceRespDto;
import com.three.iot.jdbc.model.TDeviceInfo;

import java.util.List;

/**
 * @author luiz
 * @Title: DeviceService
 * @ProjectName iot-server
 * @Description: TODO
 * @date 2019-06-13 17:42
 */
public interface DeviceService {

    Page<DeviceRespDto> listPage(DeviceCondDto deviceCondDto);

    void refresh(UserInfo userInfo);

    List<TDeviceInfo> listAll();

    List<DeviceRespDto> listLike(String condStr);

    Result<List<ProductAttrRespDto>> findAttrByIotId(String iotId);

    ProductAttrRespDto findAttrByIotIdAndAttrNo(String iotId, String identifier);
}
